class Admin::UserController < Admin::BaseController
  
  active_scaffold :user do |config|
  	  config.label = "用户管理"
  	  config.create.link.inline = false
      config.create.columns = [:username, :password, :email, :city, :province, :status]
      config.columns = [:username, :password, :email, :city, :province, :created_at, :last_login_time, :status, :props]
      config.list.columns.exclude :password, :props
      list.sorting = {:created_at => 'ASC'}
      
      columns[:username].label = "用户名"
      columns[:password].label = "密码"
      columns[:email].label = "电子邮件"
      columns[:city].label = "城市"
      columns[:province].label = "省会"
      columns[:status].label = "用户状态"
      columns[:created_at].label = "创建时间"
      columns[:last_login_time].label = "上次登录时间"
  end
end
